<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div>
	<h2>修改APP最新版本信息<i class="glyphicon glyphicon-user"></i><span>${user.devName }</span></h2>
	<hr/><h2 style="margin: 0px auto">历史版本列表</h2>

	<table border="1">
		<tr>
			<th>软件名称</th>
			<th>版本号</th>
			<th>版本大小（单位：M）</th>
			<th>发布状态</th>
			<th>APK文件下载</th>
			<th>最新更新时间</th>

		</tr>
		<c:forEach var="m" items="${appVersions}">
			<tr>
				<td>${m.appInfo.softwareName}</td>
				<td>${m.versionNo}</td>
				<td>${m.versionSize}</td>
				<td>${m.publishStatus.valueName}</td>
				<td>${m.apkFileName}</td>
				<td><fmt:formatDate value="${m.modifyDate}" pattern="yyyy-MM-dd"/> </td>
			</tr>
		</c:forEach>
	</table>
</div>
<div>
	<h2>修改最新版本信息</h2>
	<br />
	<form action="reUpdateVersion" method="get">
	<table id="albumEdit" style="margin: 0px auto">
		<tr>
			<td>版本号*<input type="hidden" name="id" value="${newVersion.id }" /></td>
			<td><input class="txt" value="${newVersion.versionNo }" disabled="disabled" type="text" id="versionNo" name="versionNo"/><label
				class="error"></label></td>
			<Br />
		</tr>
		<tr>
			<td>版本大小*</td>
			<td><input class="txt" value="${newVersion.versionSize }" type="text" id="versionSize" name="versionSize" /><label
				class=""></label></td>
		</tr>

		<tr>
			<td>发布状态*</td>
			<td><label>${newVersion.publishStatus.valueName }</label></td>
		</tr>

		<tr>
			<td>版本简介*</td>
			<td><textarea name="versionInfo">${newVersion.versionInfo }</textarea></td>
		</tr>

		<tr>
			<td>apk文件*</td>
			<td><label>${newVersion.apkFileName }</label></td>
		</tr>

		<tr>
			<td><button type="submit" class="btn btn-info">保存</button>
				<button type="button" class="btn btn-info" id="returnPage">返回</button></td>
		</tr>
	</table>
	</form>
</div>